<?php
require_once __dir__.'/common.php';
require_once __dir__.'/head.php';
?>

<script src="ground.js.php"></script>

<div id="play_ground_stage"></div>
<div id="play_ground_selector"></div>
<div id="play_ground_drag_layer"></div>

<div id="mini_map">
	<div id="mini_map_min_max"></div>
	<div id=mini_map_navigator></div>
</div>

<div id="upload_form">
	<div style="width:100%; text-align:right;"><input type=button onclick="$.unblockUI();" value="X" /></div>
	<div style="width:100%; font-size:24px;color:gray; text-align:left;margin:20px;margin-top:0px;">创建新格子！</div>
	<div id="file-uploader" style="padding-left:50px;">
		<noscript>
		<p>Please enable JavaScript to use file uploader.</p>
		<!-- or put a simple form for upload here -->
		</noscript>
	</div>
	<div id="file-list" style="padding-top:10px;"></div>
	<input type=submit id="button-confirm-upload" value="O K !" />
</div>

<div id="login_form">
	<div style="width:100%; text-align:right;"><input type=button onclick="$.unblockUI();" value="X" /></div>
	<div style="width:100%; font-size:24px;color:gray; text-align:left;margin-left:20px;">用户登录</div>
	<div id="login_error_message" style="margin-top:10px;">&nbsp;</div>
	<div style="margin-top:10px;">登录名：<input style="width:200px" name="login" value="<?php echo $_COOKIE['user_nickname']?$_COOKIE['user_nickname']:'请输入昵称或Email'; ?>" onclick="this.value=''" /></div>
	<div style="margin-top:10px;">密　码：<input style="width:200px" name="passwd" type="password" /></div>
	<div style="margin-top:10px;"><input type="button" style="margin-bottom:20px;" id="login_form_submit" value="我回来啦~" /></div>
</div>

<div id="register_form">
	<div style="width:100%; text-align:right;"><input type=button onclick="$.unblockUI();" value="X" /></div>
	<div style="width:100%; font-size:24px;color:gray; text-align:left;margin-left:20px;">用户注册</div>
	<div id="register_error_message" style="margin-top:10px;">&nbsp;</div>
	<div style="margin-top:10px;">邮　箱：<input style="width:200px" name="user_email" value="请输入您的Email" onclick="this.value=''" /></div>
	<div style="margin-top:10px;">昵　称：<input style="width:200px" name="user_nickname" value="请输入您的昵称" onclick="this.value=''" /></div>
	<div style="margin-top:10px;">密　码：<input style="width:200px" name="user_password" type="password" /></div>
	<div style="margin-top:10px;"><input type="button" style="margin-bottom:20px;" id="register_form_submit" value="O K！" /></div>
</div>

<div style="display:none;" id="image_show_url_outer">
<input type=button id="image_show_url_detail_button" value="查看图片详情" />
<div id="image_show_url"></div>
</div>

<div id="playground_tool_box">
</div>

<div id="playground_help">
	<div style="width:100%; font-size:24px;color:gray; text-align:left;">Weekdo图片广场帮助</div>
	<p>- <a target=_blank href="/register/">注册</a>、登录以后就可以点击已有图片的图片格查看图片，点击地图的空白陆地区域（灰色方块区域）创建属于自己的图片格</p>
	<p>- 地图上绿色的小点标识的是别人发表的图片，红色的小点标识的是您发表的图片</p>
	<p>- 发表的图片将会自动同步到您的weekdo图片分项列表中</p>
	<!--p>- rule 1: 新创建的格子不能离自己已有的图片格太远（目前限制为<?php echo MAXIMUM_DISTANCE_FROM_USER_EXISTING_OBJECT;?>个单元格）</p-->
	<p>- rule 2: 新创建的格子不能离别人的图片格太近（目前限制为<?php echo MINIMUM_DISTANCE_FROM_OTHER_USER_EXISTING_OBJECT;?>个单元格）</p>
	<p>有问题或意见请点<a target=_blank href=/about/>这里</a>或者给我邮件 : &lt;mail.langrui@gmail.com&gt;</p>
</div>

</body></html>